'use strict';
/**
 * logic
 * @param  {} []
 * @return {}     []
 */
export default class extends think.logic.base {
    /**
     * login action logic
     * @return {} []
     */
    loginAction() {
        this.allowMethods = "post"; //只允许 POST 请求类型

        if (think.isEmpty(this.post("account")) || think.isEmpty(this.post("password"))) {
            this.fail('参数错误!');
        }
    }
}